import { IsString, IsOptional, IsNumber, Min, Max, IsBoolean } from 'class-validator';

export class GenerateSequenceDto {
    @IsString()
    type: string;

    @IsOptional()
    @IsNumber()
    @Min(1)
    @Max(100)
    step?: number;

    @IsOptional()
    @IsNumber()
    @Min(1)
    @Max(10)
    digits?: number;

    @IsOptional()
    @IsString()
    description?: string;
}

export class BatchGenerateSequenceDto extends GenerateSequenceDto {
    @IsNumber()
    @Min(1)
    @Max(1000)
    count: number;
}

export class ResetSequenceDto {
    @IsString()
    type: string;

    @IsOptional()
    @IsString()
    date?: string;
}
